<template>
    <div id="main" class="app-main">
        <OperationNotice/>
        <router-view></router-view>
    </div>
</template>

<script>
import eventBus from './libs/event-bus'
import OperationNotice from '@/components/operation-notice'

export default {
  components: {
    OperationNotice
  },
  data () {
    return {
      theme: this.$store.state.app.themeColor
    }
  },
  mounted () {
    this.$store.dispatch('initAllCities')
    eventBus.$on('logout1', () => {
      this.$store.commit('logout')
      this.$store.commit('clearOpenedSubmenu')
      this.$router.push({
        name: 'login'
      })
    })
  },
  beforeDestroy () {},
  methods: {}
}
</script>

<style>
html,
body {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    overflow: auto;
}
.app-main {
    width: 100%;
    height: 100%;
}
.ivu-tip-block{
    display: block!important;
}

.ivu-tip-block .ivu-tooltip-rel{
    display: block;
}
</style>
